package cn.edu.njnu.opengmpback.common.dao;

import cn.edu.njnu.opengmpback.common.entity.GeoServerItem;
import cn.edu.njnu.opengmpback.resource.entity.ModelItem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;


@Repository
public interface GeoServerItemDao extends MongoRepository<GeoServerItem, String> {
    Optional<GeoServerItem> findGeoServerItemByWorkspaceAndStoreName(String workspace, String storeName);

    GeoServerItem findFirstByOrderByUpdateTimeAsc();
}